﻿using Nvigorate.Relational.Mapping.Index;
using Nvigorate.Relational.Navigation;
using Nvigorate.Relational.Repository;

namespace Nvigorate.Extensions
{
    public static class IPersistableExtenders
    {
        public static INavigatingPersistable GetNavigator(this IPersistable persistable,
                                                          IRepositoryMapIndex repositoryMapIndex)
        {
            return new NavigatingPersistable(persistable, repositoryMapIndex);
        }
    }
}